package com.gdzn.signal.service.impl;

import com.gdzn.signal.mongo.document.*;
import com.gdzn.signal.mongo.service.*;
import com.gdzn.signal.service.SignalStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SignalAlarmServiceImpl implements SignalStrategy {
    @Autowired
    private IMgSignalAlarmService mgSignalAlarmService;

    @Autowired
    private MgSignalAttributeService mgSignalAttributeService;

    @Autowired
    private MgSignalCmdControlService mgSignalCmdControlService;

    @Autowired
    private MgSignalCmdQconfigService mgSignalCmdQconfigService;

    @Autowired
    private MgSignalLoginService mgSignalLoginService;

    @Override
    public void saveSignal(MgSignal signal) {
//        mgSignalAlarmService.insert(signal);
    }

    public void saveSignal(MgSignalAlarm signal) {
        mgSignalAlarmService.insert(signal);
    }

    public void saveSignal(MgSignalAttribute signal) {
        mgSignalAttributeService.insert(signal);
    }

    public void saveSignal(MgSignalCmdControl signal) {
        mgSignalCmdControlService.insert(signal);
    }

    public void saveSignal(MgSignalCmdQconfig signal) {
        mgSignalCmdQconfigService.insert(signal);
    }

    public void saveSignal(MgSignalLogin signal) {
        mgSignalLoginService.insert(signal);
    }
}
